package org.telegram.bot.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 菜单语言对象 bot_menu_language
 *
 * @author wyx
 * @date 2023-05-31
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("bot_menu_language")
public class BotMenuLanguage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    @TableId(value = "id")
    private String id;

    /** 菜单ID */
    @Excel(name = "菜单ID")
    private Long menuId;

    /** 名称 */
    @Excel(name = "菜单别名")
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;

    @Excel(name = "菜单名称")
    @TableField(exist = false)
    private String menuName;

    /** 语言类型 */
    @Excel(name = "语言类型")
    private String type;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建者Id */
    @TableField(fill = FieldFill.INSERT)
    private Long createById;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("menuId", getMenuId())
            .append("name", getName())
            .append("type", getType())
            .append("remark", getRemark())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
